package serveur;

import java.io.IOException;
import java.net.ServerSocket;

public class Serveur {
	final static int port = 2012;
	final static int nbparties = 2;


	public static void main (String argvs[]) {
		Thread t;
		Partie[] parties = new Partie[nbparties];

		try {
			ServerSocket serv = new ServerSocket(port);
			System.out.println("Serveur en attente sur le port " + port+".");

			t = new Thread(new AccepterConnexion(serv, parties));
			t.start();	

		} catch (IOException e) {
			e.printStackTrace();
		}



	}
}
